package com.apes.fn.server.vehicleFile.server.vehicleFileUploadProcess;

import com.alibaba.fastjson.JSONObject;
import com.apes.fn.server.vehicleFile.model.VehicleFileAccount;
import com.apes.fn.server.vehicleFile.model.VehicleFileUploadInfo;

import java.util.Map;

/**
 * @program: apes-server
 * @description: 汽车档案上传处理器
 * @author: czs
 * @create: 2023-11-02 14:22
 **/
public interface VehicleFileUploadProcess {

    /**
     * 验证token有效期
     * @param vehicleFileAccount
     */
    void checkTokenValid(VehicleFileAccount vehicleFileAccount);

    String getToken(VehicleFileAccount vehicleFileAccount);

    /**
     * 上传
     */
    boolean upload(VehicleFileAccount vehicleFileAccount, VehicleFileUploadInfo vehicleFileUploadInfo);

    /**
     * 封装数据
     */
    Map<String, Object> paket(VehicleFileAccount vehicleFileAccount, VehicleFileUploadInfo vehicleFileUploadInfo);

    boolean register(VehicleFileAccount vehicleFileAccount);
}
